#@adminLayout()
#define main()
<div class="jbolt_page">
    <div class="jbolt_page_content">

        <div class="row" >
            <div class="col-12">
                <form class="form" id="becRetailerForm"  action="/auth/mall/retailer/update_basic" method="post" onsubmit="return RefreshsubmitForm(this);">
                    #if(retailer.id??)
                    <input type="hidden" name="retailer.id" value="#(retailer.id)" />
                    #end
                    <div class="form-group row">
                        <label class="col-3 col-form-label">商家名称</label>
                        <div class="col-8">
                            <input type="text" autocomplete="off"  class="form-control" data-rule="required" data-tips="请输入商家名称" maxlength="20" name="retailer.name" value="#(retailer.name??)">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-3 col-form-label">手机号</label>
                        <div class="col-8">
                            <input type="text" autocomplete="off"  class="form-control" data-rule="phone" data-tips="请输入商家手机号" maxlength="15" name="retailer.mobile" value="#(retailer.mobile??)">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-3 col-form-label">地址</label>
                        <div class="col-8">
                            <input type="text" autocomplete="off"   data-rule="required" data-tips="请输入商家地址" class="form-control"   maxlength="25" name="retailer.address" value="#(retailer.address??)">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-3 col-form-label">经营范围</label>
                        <div class="col-8">
                            <input type="text" autocomplete="off"   data-rule="required"  data-tips="请输入商家经营范围"   class="form-control"   maxlength="40" name="retailer.license_range" value="#(retailer.license_range??)">
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-3 col-form-label">商家类别</label>
                        <div class="col-8">
                            <div class="form-group">
                                <select class="form-control"
                                        name="retailerTypeId"
                                        data-autoload
                                        data-rule="required"
                                        data-url="/auth/mall/retailer/type_options"
                                        data-tips="请选择商家类型"
                                        data-text="#(MyUtil.get_retailer_type_name(retailer.type_id??))"
                                        data-value="#(retailer.type_id??)"
                                        data-select="#(retailerTypeId??)"
                                >
                                </select>
                            </div>
                        </div>
                    </div>


                    <div class="form-group row" >
                        <label class="col-3 col-form-label">选择营业时间:</label>
                        <div class="col-3">
                            <input type="text" class="form-control" data-rule="required" data-tips="请选择营业时间"  data-date data-type="time" data-fmt="HH:mm:ss" name="open_time" value="#(MyUtil.get_date_daytime(retailer.open_time??))">
                        </div>
                        <label>~</label>
                        <div class="col-3">
                            <input type="text" class="form-control" data-rule="required" data-tips="请选择营业时间"  data-date data-type="time" data-fmt="HH:mm:ss" name="close_time" value="#(MyUtil.get_date_daytime(retailer.close_time??))">
                        </div>
                    </div>


                    <div class="form-group text-center">
                        <button type="submit"   class="btn btn-success" ><i class="fa fa-check mr-2"></i>提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
#end

#define js()
#end